package com.kk.combination;

/**
 * @author 王志强
 * @date 2022-01-05
 */
abstract class OrganizationComponent {

    private String name;
    private String des;


    public OrganizationComponent(String name, String des) {
        this.name = name;
        this.des = des;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public void add(OrganizationComponent organizationComponent) {
        throw new UnsupportedOperationException();
    }

    public void remove(OrganizationComponent organizationComponent) {
    }

    public abstract void print();
}
